import React from "react";
import { BrowserRouter as Router, Redirect, Route, Link } from "react-router-dom";
import Index from "./pages/Index";
import House from "./pages/House";
import Login from "./pages/Login";
import My from "./pages/My";
import "./App.scss";



export default function () {
  return (
    <div className="app">
      <Router>
        <Route path="/house" component={House} /> 
        <Route path="/my" component={My} />
        <Route path="/login" component={Login} />
        <Route path="/" component={Index} />
        <Redirect path="/" to="/login"/>
      </Router>
    </div>
  );
}
